<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>三级联动</title>
    <style>
        body,
        div,
        select,
        option {
            margin: 0;
            padding: 0;
        }

        body {
            background-color: lightblue;
        }

        .container {
            width: 300px;
            margin: 0 auto;
            margin-top: 20px;
            ;
        }

        .item {
            width: 100%;
            height: 42px;
            line-height: 42px;
            font-size: 16px;
            background-color: #fff;
            border-radius: 15px;
            margin-bottom: 10px;
            padding: 0 10px;
        }

        .title {
            display: inline-block;
            height: 42px;
            line-height: 42px;
            color: #03a9f4;
        }

        .content {
            display: inline-block;
            height: 42px;
        }

        .title::after {
            content: "|";
            display: inline-block;
            font-weight: 500;
            margin: 0 10px;
        }

        .item select {
            width: 210px;
            height: 38px;
            border: none;
            outline: none;
            cursor: pointer;
        }

        .item select option {
            cursor: pointer;
        }
    </style>
</head>

<body>
    <div class="container">
        <div class="item">
            <div class="title">省会</div>
            <div class="content">
                <select name="province" id="province">
                </select>
            </div>
        </div>
        <div class="item">
            <div class="title">城市</div>
            <select name="city" id="city">
            </select>
        </div>
        <div class="item">
            <div class="title">学校</div>
            <select name="school" id="school">
            </select>
        </div>
    </div>
    <script src="./data.js"></script>
    <script src="./index.js"></script>
</body>

</html>